//
//  EOSAccountResult.h
//  Bees
//
//  Created by NowYouCanSee on 2018/12/26.
//  Copyright © 2018 xiaohan. All rights reserved.
//
/***{
    core_liquid_balance = 0.5805 EOS;
    ram_quota = 5473;
    ram_usage = 4710;
    self_delegated_bandwidth = {
        net_weight = 0.0000 EOS;
        to = linxiaohan55;
        cpu_weight = 0.1000 EOS;
        from = linxiaohan55;
    }
    ;
    cpu_weight = 2000;
    cpu_limit = {
        used = 2611;
        available = 22799;
        max = 25410;
    }
    ;
    permissions = (
                   {
                       required_auth = {
                           keys = (
                                   {
                                       key = EOS7xXKBZSnaEFavnhiasDr5NceCfM6jweAZQpmb88d7vgKN6VmAW;
                                       weight = 1;
                                   }
                                   ,
                                   );
                           accounts = (
                           );
                           waits = (
                           );
                           threshold = 1;
                       }
                       ;
                       parent = owner;
                       perm_name = active;
                   }
                   ,
                   {
                       required_auth = {
                           keys = (
                                   {
                                       key = EOS7xXKBZSnaEFavnhiasDr5NceCfM6jweAZQpmb88d7vgKN6VmAW;
                                       weight = 1;
                                   }
                                   ,
                                   );
                           accounts = (
                           );
                           waits = (
                           );
                           threshold = 1;
                       }
                       ;
                       parent = ;
                       perm_name = owner;
                   }
                   ,
                   );
    last_code_update = 1970-01-01T00:00:00.000;
    account_name = linxiaohan55;
    voter_info = {
        owner = linxiaohan55;
        producers = (
                     eoscannonchn,
                     );
        staked = 2050;
        proxy = ;
        proxied_vote_weight = 0.00000000000000000;
        is_proxy = 0;
        last_vote_weight = 1133652453.24813938140869141;
    }
    ;
    head_block_time = 2019-01-09T01:58:05.000;
    privileged = 0;
    net_limit = {
        used = 979;
        available = 3102;
        max = 4081;
    }
    ;
    refund_request = {
        owner = linxiaohan55;
        cpu_amount = 0.2000 EOS;
        request_time = 2019-01-08T11:44:31;
        net_amount = 0.1000 EOS;
    }
    ;
    created = 2018-12-12T06:13:10.000;
    net_weight = 50;
    total_resources = {
        net_weight = 0.0050 EOS;
        ram_bytes = 4073;
        owner = linxiaohan55;
        cpu_weight = 0.2000 EOS;
    }
    ;
    head_block_num = 36450312;
}
 ****///
#import "XHBaseModel.h"
NS_ASSUME_NONNULL_BEGIN

@interface EOSAccountResult : XHBaseModel
@property(nonatomic, strong) NSArray *account_names;
@end

@interface EOSAccountLimit : XHBaseModel
@property(nonatomic, copy) NSString *used;
@property(nonatomic, copy) NSString *available;
@property(nonatomic, copy) NSString *max;
@end
///总资源
@interface EOSAccountTotalResources : XHBaseModel
@property(nonatomic, copy) NSString *owner;
@property(nonatomic, copy) NSString *net_weight;
@property(nonatomic, copy) NSString *cpu_weight;
@property(nonatomic, copy) NSString *ram_bytes;
@end
///给自己抵押
@interface EOSAccountDelegatedBandwidth : XHBaseModel
@property(nonatomic, copy) NSString *from;
@property(nonatomic, copy) NSString *to;
@property(nonatomic, copy) NSString *net_weight;
@property(nonatomic, copy) NSString *cpu_weight;
@end
///赎回
@interface EOSAccountRefundRequest : XHBaseModel
@property(nonatomic, copy) NSString *owner;
@property(nonatomic, copy) NSString *request_time;
@property(nonatomic, copy) NSString *net_amount;
@property(nonatomic, copy) NSString *cpu_amount;
@end

@interface EOSAccountVoterInfo : XHBaseModel
@property(nonatomic, copy) NSString *owner;
@property(nonatomic, copy) NSString *proxy;
@property(nonatomic, strong) NSArray *producers;
@property(nonatomic, copy) NSString *cpu_weight;
@property(nonatomic, copy) NSString *staked;
@property(nonatomic, copy) NSString *last_vote_weight;
@property(nonatomic, copy) NSString *proxied_vote_weight;
@property(nonatomic, assign) BOOL is_proxy;
@end
@interface EOSKey : XHBaseModel
@property(nonatomic, assign) NSInteger weight;
@property(nonatomic, copy) NSString *key;
@end
@interface EOSRequiredAuth : XHBaseModel
@property(nonatomic, assign) NSInteger threshold;
@property(nonatomic, strong) NSArray <EOSKey*>*keys;
@property(nonatomic, strong) NSArray *accounts;
@property(nonatomic, strong) NSArray *waits;
@end
@interface EOSPermissionsInfo : XHBaseModel
@property(nonatomic, copy) NSString *perm_name;
@property(nonatomic, copy) NSString *parent;
@property(nonatomic, strong) EOSRequiredAuth *required_auth;
@end

@interface EOSAccountInfo : XHBaseModel
@property(nonatomic, copy) NSString *account_name;
@property(nonatomic, copy) NSString *head_block_num;
@property(nonatomic, copy) NSString *head_block_time;
@property(nonatomic, assign) BOOL privileged;
@property(nonatomic, copy) NSString *last_code_update;
@property(nonatomic, copy) NSString *created;
@property(nonatomic, copy) NSString *core_liquid_balance;
@property(nonatomic, copy) NSString *ram_quota;
@property(nonatomic, copy) NSString *net_weight;
@property(nonatomic, copy) NSString *cpu_weight;
@property(nonatomic, strong) EOSAccountLimit *net_limit;
@property(nonatomic, strong) EOSAccountLimit *cpu_limit;
@property(nonatomic, copy) NSString *ram_usage;
///可用ram
@property(nonatomic, copy) NSString *ram_remaining;
@property(nonatomic, strong) NSArray <EOSPermissionsInfo*>*permissions;
@property(nonatomic, strong) EOSAccountTotalResources *total_resources;
@property(nonatomic, strong) EOSAccountDelegatedBandwidth *self_delegated_bandwidth;
@property(nonatomic, strong) EOSAccountRefundRequest *refund_request;
@property(nonatomic, strong) EOSAccountVoterInfo *voter_info;
///总资产
@property(nonatomic, copy) NSString *totalAssets;
///单位
@property(nonatomic, copy) NSString *unit;

@end
NS_ASSUME_NONNULL_END
